﻿using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace DAL
{
    public class CommodityInfoDAL : BaseDeleteDAL<CommodityInfo>, ICommodityInfoDAL
    {
        private UnmanContexts _unmanContexts;


        public CommodityInfoDAL(
            UnmanContexts unmanContexts
            ) : base(unmanContexts)
        {
            _unmanContexts = unmanContexts;
        }

        public DbSet<CommodityInfo> GetCommodityInfos()
        {
            return _unmanContexts.CommodityInfo;
        }

    }
}
